package com.ry.est.exception;

import com.ry.est.constants.ResultEnum;

public class BussinessException extends RuntimeException{
    private String code;

    public BussinessException(String message) {
        super(message);
    }

    public BussinessException(String code,String message){
        super(message);
        this.code = code;
    }

    public BussinessException(ResultEnum resultEnum){
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

}
